package com.ffcs.web.model.entity;
// default package

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Drawal entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wechat_withdrawal")
public class Drawal implements java.io.Serializable {

	// Fields

	private Integer id;
	private Date date;
	@Transient
	private String dateStr;
	private Double money;
	private String counseName;
	private String counseTel;
	private Integer payChannel;
	private String account;
	private Integer status;
	private Integer type;
	private String bankName;

	// Constructors

	/** default constructor */
	public Drawal() {
	}

	/** minimal constructor */
	public Drawal(Date date, Double money, String counseName,
			String counseTel, Integer payChannel, String account,
			Integer status, Integer type) {
		this.date = date;
		this.money = money;
		this.counseName = counseName;
		this.counseTel = counseTel;
		this.payChannel = payChannel;
		this.account = account;
		this.status = status;
		this.type = type;
	}

	/** full constructor */
	public Drawal(Date date, Double money, String counseName,
			String counseTel, Integer payChannel, String account,
			Integer status, Integer type, String bankName) {
		this.date = date;
		this.money = money;
		this.counseName = counseName;
		this.counseTel = counseTel;
		this.payChannel = payChannel;
		this.account = account;
		this.status = status;
		this.type = type;
		this.bankName = bankName;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "date", nullable = false, length = 19)
	public Date getDate() {
		return this.date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@Column(name = "money", nullable = false, precision = 10)
	public Double getMoney() {
		return this.money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	@Column(name = "counseName", nullable = false, length = 100)
	public String getCounseName() {
		return this.counseName;
	}

	public void setCounseName(String counseName) {
		this.counseName = counseName;
	}

	@Column(name = "counseTel", nullable = false, length = 20)
	public String getCounseTel() {
		return this.counseTel;
	}

	public void setCounseTel(String counseTel) {
		this.counseTel = counseTel;
	}

	@Column(name = "payChannel", nullable = false)
	public Integer getPayChannel() {
		return this.payChannel;
	}

	public void setPayChannel(Integer payChannel) {
		this.payChannel = payChannel;
	}

	@Column(name = "account", nullable = false, length = 40)
	public String getAccount() {
		return this.account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	@Column(name = "status", nullable = false)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "type", nullable = false)
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "bankName", length = 30)
	public String getBankName() {
		return this.bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}
	@Transient
	public String getDateStr() {
		return dateStr;
	}

	public void setDateStr(String dateStr) {
		this.dateStr = dateStr;
	}

}